<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

<title>登录</title>
<meta name="keywords" content="">
<meta name="description" content="">
<link rel="shortcut icon" href="${pageContext.request.contextPath}/images/favicon.ico"> 
<link href="${pageContext.request.contextPath}/css/bootstrap.min.css"
	rel="stylesheet">
<link href="${pageContext.request.contextPath}/css/font-awesome.css"
	rel="stylesheet">
<link href="${pageContext.request.contextPath}/css/animate.css"
	rel="stylesheet">
<link href="${pageContext.request.contextPath}/css/style.css"
	rel="stylesheet">
<link href="${pageContext.request.contextPath}/css/login.css"
	rel="stylesheet">

	<style>
		/*自定义本地字体*/
		@font-face {
			font-family: myfont;
			src: url('fonts/lunyu.ttf');
		}
	</style>

<script>
        if (window.top !== window.self) {
            window.top.location = window.location;
        }
    </script>

</head>

<body class="signin">
	<div class="header" style="height: 100vh;    width: 100vw;    position: fixed;">
		<header class="l-top hasAnim arrow-holder">
			<a data-path-hover="M31.3184948,33.1943359 C36.3357454,28.0664371 44.4728686,28.0690462 49.572124,33.2807584 C54.6360745,38.4563871 54.6061839,46.8782889 49.6566817,51.9369454 L31.318494,69.5197703 L49.6566817,89.71735 C54.6739322,94.8452488 54.6713794,103.161825 49.572124,108.373537 C44.5081735,113.549166 36.267997,113.518616 31.3184948,108.459959 L3.8112137,78.891075 C-1.25273677,73.7154463 -1.2880417,65.3601778 3.8112137,60.1484655 L31.3184948,33.1943359 Z">
				<svg width="0" height="0">
					<path fill="#fff" d="M58.9103319,3.8342148C63.9275825,-1.29368407,72.0647057,-1.29107495,77.1639611,3.92063726C82.2279116,9.09626594,82.198021,17.5181678,77.2485188,22.5768242C77.2485188,22.5768242,31.318494,69.5197703,31.318494,69.5197703C31.318494,69.5197703,77.2485188,116.462716,77.2485188,116.462716C82.2657693,121.590615,82.2632165,129.907191,77.1639611,135.118903C72.1000106,140.294532,63.8598341,140.263982,58.9103319,135.205326C58.9103319,135.205326,3.8112137,78.891075,3.8112137,78.891075C-1.25273677,73.7154463,-1.2880417,65.3601778,3.8112137,60.1484655C3.8112137,60.1484655,58.9103319,3.8342148,58.9103319,3.8342148C58.9103319,3.8342148,58.9103319,3.8342148,58.9103319,3.8342148"></path>
				</svg>
			</a>
			<a data-path-hover="M31.3184948,33.1943359 C36.3357454,28.0664371 44.4728686,28.0690462 49.572124,33.2807584 C54.6360745,38.4563871 54.6061839,46.8782889 49.6566817,51.9369454 L31.318494,69.5197703 L49.6566817,89.71735 C54.6739322,94.8452488 54.6713794,103.161825 49.572124,108.373537 C44.5081735,113.549166 36.267997,113.518616 31.3184948,108.459959 L3.8112137,78.891075 C-1.25273677,73.7154463 -1.2880417,65.3601778 3.8112137,60.1484655 L31.3184948,33.1943359 Z">
				<svg width="0" height="0">
					<path fill="#fff" d="M58.9103319,3.8342148 C63.9275825,-1.29368407 72.0647057,-1.29107495 77.1639611,3.92063726 C82.2279116,9.09626594 82.198021,17.5181678 77.2485188,22.5768242 L31.318494,69.5197703 L77.2485188,116.462716 C82.2657693,121.590615 82.2632165,129.907191 77.1639611,135.118903 C72.1000106,140.294532 63.8598341,140.263982 58.9103319,135.205326 L3.8112137,78.891075 C-1.25273677,73.7154463 -1.2880417,65.3601778 3.8112137,60.1484655 L58.9103319,3.8342148 Z"></path>
				</svg>
			</a>
		</header>
	</div>
	<div class="signinpanel" style="">
		<div class="row">
			<div class="col-sm-7">
				<div class="signin-info">
					<div class="logopanel m-b">
						<h1 style="color: #2f4443;    position: absolute;    top: -77px;    font-size: 38px;">[ 论语网站后台管理系统 ]</h1>
					</div>
					<div class="m-b"></div>
					<h4>
						欢迎您登入 <strong> 后台管理网站</strong>
					</h4>
					<ul class="m-b">
						<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i>
							权限分配、操作日志</li>
						<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i>
							访客记录、IP剔除</li>
						<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i>
							分页数据、动态图表</li>
						<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 所有操作都异步</li>
						<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i>
							注：访问者无删除、修改操作</li>
					</ul>
					<div class=" tooltip-demo ">
						<strong>没有账号？ <a href="#" style="color:#3c3a39"
							data-toggle="tooltip" data-placement="top" title="QQ:1192384722">联系站长&raquo;</a>
							<a href="${pageContext.request.contextPath}/index.jsp"
							style="color:#3c3a39;margin-left:15px;">首页&raquo;</a></strong>

					</div>
				</div>
			</div>
			<div class="col-sm-5">
				<form id="login" action="${pageContext.request.contextPath}/checkLogin" method="post">
					<h3 class="no-margins">-登录-</h3>
					<span class="m-t-md">登录访问 <span style="font-family: myfont;font-size: 32px;color: black;">论语</span> 后台管理网站</span>
					<input type="text" id="username" name="username" class="form-control uname"
						placeholder="用户名" /> <input type="password" name="password" id="password"
						class="form-control pword m-b" placeholder="密码" /> <a
						style="color:#101010de" href="javascript:void(0);">忘记密码了？</a>
						 <span class="msg" style="color:#6722228a;margin-left:20px;"
						href="javascript:void(0);">${message }</span>
					<button type="button" onclick="login()" class="btn btn-success btn-block">登录</button>
				</form>
			</div>
		</div>
		<div class="signup-footer">
			<div class="pull-left">
				<strong>--2021.3 论语网站后台</strong>
			</div>
		</div>
	</div>
	<div class="gohome" style="display:none"></div>
	<script src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
	<script src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
	<script src="${pageContext.request.contextPath}/js/content.js"></script>
	<script type="text/javascript">
	<%--<script>NProgress.start();</script>--%>
	<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
	<script src="js/plugins/blogbenoitboucart.min.js"></script>
	<script>
		$(document).ready(function() {
			$(".gohome").css("display","none");
		});


		var login=function(){
			var username=$("#username").val().replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g, "&quot;").replace(/'/g, "&#039;");
			var password=$("#password").val().replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g, "&quot;").replace(/'/g, "&#039;");
			$("#username").val(username);
			$("#password").val(password);
			$("#login").submit();
		}
</script>
</body>

</html>
